﻿using System.Collections;

using Elifart.Library;

namespace Elifart.Editor.CategoryTabs.AssociationControls
{
    public class AssociationTreeViewSorter : IComparer
    {
        #region Public Methods

        public int Compare(object x, object y)
        {
            AssociationTreeNode associationTreeNodeOne = x as AssociationTreeNode;
            AssociationTreeNode associationTreeNodeTwo = y as AssociationTreeNode;
            return string.Compare(associationTreeNodeOne.Text, associationTreeNodeTwo.Text);
        }

        #endregion
    }
}
